<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input id="c-id" disabled class="form-control" name="row[id]" type="hidden" value="{$ids}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('充值用户')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nickname" disabled class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('充值手机号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phone" disabled class="form-control" name="row[phone]" type="text" value="{$row.phone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('自由积分')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-score" disabled class="form-control" name="row[score]" type="text" value="{$row.score|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('固定积分')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fixed_score" disabled class="form-control"  name="row[fixed_score]" type="text" value="{$row.fixed_score|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('充值月份')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-card_day" disabled class="form-control" name="row[card_day]" type="number" value="{$row.card_day|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('充值课程')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-course_name" disabled class="form-control"  name="row[course_name]" type="text" value="{$row.course_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('充值卡')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-card_name" disabled class="form-control"  name="row[card_name]" type="text" value="{$row.card_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('充值商家')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-merchant_name" disabled class="form-control" name="row[merchant_name]" type="text" value="{$row.merchant_name|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('凭证')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">

            <button type="button" class="btn btn-success btn-status-click" data-order='{"status":2,"id":{$ids}}'>驳回</button>
            <button type="button" class="btn btn-success btn-status-click" data-order='{"status":1,"id":{$ids}}'>审核通过</button>
        </div>
    </div>
</form>
<script type="text/javascript">
    // === 设置分数上限
    function cs (price) {

        console.log("进入方法","number =",price.value);
        const moment = require('moment');
        var max_integral= moment().format('YYYY-MM-DD HH:mm:ss');
        $("#c-confirmdetection_time").val(max_integral)
    }
</script>
